<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<%@page import="avicit.platform6.api.session.SessionHelper" %>
<%@page import="avicit.platform6.api.sysshirolog.impl.AfterLoginSessionProcess" %>
<%@page import="avicit.platform6.commons.utils.ViewUtil" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ page import="java.util.Locale" %>
<%@ taglib prefix="sec" uri="/WEB-INF/tags/shiro.tld" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>主题词维护</title>
    <base href="<%=ViewUtil.getRequestPath(request)%>">
    <%
        Object lang = session.getAttribute(AfterLoginSessionProcess.SESSION_CURRENT_LANGUAGE_CODE);
        String languageCode = "zh_CN";
        if (lang != null) {
            languageCode = lang.toString();
        }
        Locale locale = SessionHelper.getLocaleByUser(request);
    %>
    <jsp:include
            page="/avicit/platform6/component/common/EasyUIJsInclude.jsp"></jsp:include>
    <jsp:include page="/avicit/im/common/ImUIJSCSSInclude.jsp"></jsp:include>
    <script type="text/javascript" src="avicit/im/lantop/basic/lexiconManager/LexIconManager.js"></script>
    <script type="text/javascript" src="avicit/im/lantop/basic/themewordmanager/locale/language_<%=languageCode%>.js"></script>
    <script type="text/javascript" src="static/js/platform/index/js/divscroll.js" ></script>
    <link href="static/css/custom/lantop/css/custom.css" type="text/css"  rel="stylesheet">
    <script type="text/javascript">
        var baseurl = "<%=ViewUtil.getRequestPath(request)%>";
        var value = "${value}";
        $(function () {
            $(".datagrid-view2").find(".datagrid-body").perfectScrollbar();
        })
    </script>
    <style type="text/css">
        .datagrid-toolbar-extend {
            bottom: 20px;
        }
        .datagrid-editable-input {
		    width: 170px !important;
		    border-radius: 3px;
		}
    </style>
</head>
<body id="myBody" class="easyui-layout" fit="true">
<div data-options="region:'center'">
<div id="tt" class="easyui-tabs" fit=true data-options="onSelect:onSelect">
    <div title="同义词"  data-options="region:'center'" class="easyui-layout" id="tab1">
            <table id="mydatagrid" class="easyui-datagrid">
                <thead>
                <tr>
                    <th data-options="field:'id', halign:'center',checkbox:true"
                        width="200"></th>
                    <%-- 序号 --%>
            		<th data-options="field:'ROWNUM', halign:'center', align:'center', sortable:false,editor:{type:'text'}, fixed: true, width: 55, formatter:getPageSize"
						title="序号" editor="{type:'',options:{required:true}}">序号</th>
                    <th data-options="field:'formalThemeWord',halign:'center',align:'center'"
                        editor="{type:'validatebox', options:{required:true}}"
                        width="200">关键词&nbsp;<span
                            style="color: red; font-size: small;">*</span></th>
                    <th data-options="field:'unformalThemeWord',halign:'center',align:'center'"
                        editor="{type:'validatebox'}" width="200">同义词&nbsp;<span
                            style="color: red; font-size: small;">*</span></th>
                    <th data-options="field:'wordFrequency', halign:'center',align:'center'"
                        editor="{type:'',options:{required:true}}" width="200">词频统计
                    </th>
                </tr>
                </thead>
            </table>
        <div id="toolbar" style="overflow: hidden; padding: 10px 5px;">
            <%-- 添加 --%>
            <a class="easyui-linkbutton selbtnc" iconCls="icon-im-add" 
               onclick="addData();" href="javascript:void(0);">新增
            </a>
            <%-- 保存 --%>
            <a class="easyui-linkbutton selbtnc" iconCls="icon-im-save"
               onclick="saveData();" href="javascript:void(0);">保存
            </a>
            <%-- 删除 --%>
            <a class="easyui-linkbutton selbtnc" iconCls="icon-im-remove" 
               onclick="deleteData();" href="javascript:void(0);">删除
            </a>
                <div class="search_input">
					<input onclick="javascript:clear(this.value='')" onkeydown="fastSearch()" id="evalSearch" type="text" placeholder="快速检索" />
					<img src="avicit/im/lantop/common/search/image/icon_tool14.png">
				</div>
        </div>
    </div>
    <div title="敏感词" <%--fit=true--%> class="easyui-layout" id="tab2">

        <table id="mydatagrid1" class="easyui-datagrid">
            <thead>
            <tr>
                <th data-options="field:'id', halign:'center',checkbox:true"
                    width="200"></th>
                 <%-- 序号 --%>
            	<th data-options="field:'ROWNUM', halign:'center', align:'center', sortable:false,editor:{type:'text'}, fixed: true, width: 55, formatter:getPageSize"
						title="序号" editor="{type:'',options:{required:true}}">序号</th>
                <th data-options="field:'formalThemeWord',halign:'center',align:'center'"
                    editor="{type:'validatebox', options:{required:true}}"
                    width="200">敏感词&nbsp;<span
                        style="color: red; font-size: small;">*</span></th>
            </tr>
            </thead>
        </table>
    </div>
</div>
</div>
</body>
</html>
